package testapp.client;

import testapp.client.util.AppContext;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
import com.googlecode.gwtphonegap.client.PhoneGapAvailableEvent;
import com.googlecode.gwtphonegap.client.PhoneGapAvailableHandler;

public class ClientEntryPoint implements EntryPoint {
    @Override
    public void onModuleLoad() {
        AppContext.getInstance().getPhoneGap().addHandler(new PhoneGapAvailableHandler() {
            @Override
            public void onPhoneGapAvailable(PhoneGapAvailableEvent event) {
                RootPanel.get().add(new Display());
            }
        });

        AppContext.getInstance().getPhoneGap().initializePhoneGap();
    }
}
